package com.clothe.dao;

import java.sql.Connection;
import java.util.List;
import com.clothe.dto.Clothing;
import com.clothe.dto.UserInfo;

public interface IBuycarDAO {
	public boolean save(Clothing clothing,UserInfo userInfo) throws Exception;
	
	public boolean delete (UserInfo userInfo,Clothing clothing) throws Exception;
	
	public boolean deleteall(int buyerid) throws Exception;
	
	public boolean update(int buyerid,Clothing clothing,int amount) throws Exception;

	public Clothing get(int buyerid) throws Exception;
	
	public Clothing getbyclothingid(int buyerid,int clothingid) throws Exception;

	public List<Clothing> list(int pageSize, int pageNo,int buyerid) throws Exception;
	
	public List<Clothing> buycarlist(int buyerid) throws Exception;
	
	public int getCount(int buyerid) throws Exception;

	public void setConn(Connection conn);

}
